curl --request PUT \
--url https://api.topsort.com/public/v1/segment-service/segments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"segments": [
{
"name": "<string>",
"description": "<string>",
"id": "<string>"
}
]
}
'{
"segments": [
{
"name": "<string>",
"description": "<string>",
"id": "<string>",
"total": 123
}
]
}Upsert segments with the provided information.
curl --request PUT \
--url https://api.topsort.com/public/v1/segment-service/segments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"segments": [
{
"name": "<string>",
"description": "<string>",
"id": "<string>"
}
]
}
'{
"segments": [
{
"name": "<string>",
"description": "<string>",
"id": "<string>",
"total": 123
}
]
}A valid API key generated in Topsort's UI.
Successful Response
List of segments.
Was this page helpful?